package cmd

import (
	"gitee.com/huoyu123hk/cloudAgent/pkg/logx"
	"github.com/spf13/cobra"
)

// versionCmd represents the version command
var versionCmd = &cobra.Command{
	Use:   "version",
	Short: "Print the version number of cloudAgent",
	Long:  `All software has versions. This is cloudAgent's`,
	Run: func(cmd *cobra.Command, args []string) {
		logx.Info("cloudAgent v0.1.0 -- HEAD")
	},
}

func init() {
	rootCmd.AddCommand(versionCmd)
}
